public class demoWildcard{
  public static void main(String args[]){
     Integer  inums[] = {1,2,3,4,5};
     Stats <Integer>   iobj = new Stats<Integer>(inums);
     Double  dnums[] = {1.1,2.2,3.3,4.4,5.5};
     Stats <Double>   dobj = new Stats<Double>(dnums);
     dobj.doSomething(iobj);
  }
}